#ifndef __WIN32_H__
#define __WIN32_H__
// Win32.h - Includes common windows headers and functions.

// Define the Windows Environment we are programming for. This will give us
// access to only api's present in that environment and later.
#define WINVER			0x0600	// Vista
#define _WIN32_WINNT	0x0600	// Vista

// Exclude uneccessary APIs from the Windows Header to reduce file size
// and compile time.
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN

#include <Windows.h>
#include <WindowsX.h>

inline POINT CalcWndRect(int width, int height, DWORD style)
{
	RECT R = { 0, 0, width, height };
	AdjustWindowRect(&R, style, false);

	POINT size = { 0 };
	size.x = R.right  - R.left;
	size.y = R.bottom - R.top;

	return size;
}

#endif